package com.coder.oj.system.dto;

import com.coder.oj.common.validate.ValidationGroups;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
public class ProblemDto implements Serializable {

    @ApiModelProperty("题目id")
    @NotNull(message = "题目id不能为空", groups = {ValidationGroups.Insert.class})
    private Long problemId;

    @ApiModelProperty("状态（1AC,2WA,3CE,4TLE,5MLE）")
    @NotNull(message = "状态不能为空", groups = {ValidationGroups.Insert.class})
    private Integer status;

    @ApiModelProperty("语言（1java）")
    @NotNull(message = "语言不能为空", groups = {ValidationGroups.Insert.class})
    private Integer language;

    @ApiModelProperty("运行内存")
    @NotNull(message = "运行内存不能为空", groups = {ValidationGroups.Insert.class})
    private Long memo;

    @ApiModelProperty("运行时间")
    @NotNull(message = "运行时间不能为空", groups = {ValidationGroups.Insert.class})
    private Long time;

}
